import React from 'react'
import { connect } from 'dva'
import Authorized from '@/components/Authorized'

export default connect(({ app: { user={} } }) => ({ user }))(({ children, ...props }) => {
	return (
		<Authorized>
			{children}
		</Authorized>
	)
})